ROOT = /disk7a/bigdata/jurgen/scripts/Aqua/mdf2Atom
RAW  = $(ROOT)/Example/TEST.mdf
DIR  = $(ROOT)

all:	disgeo disman diana xplor biosym pdb akke aqua

atom:	$(DIR)/AtomLIB-disgeo $(DIR)/AtomLIB-disman $(DIR)/AtomLIB-diana \
	$(DIR)/AtomLIB-xplor $(DIR)/AtomLIB-biosym $(DIR)/AtomLIB-pdb \
	$(DIR)/AtomLIB-akke

pseu:	$(DIR)/PseudoLIB-aqua

disgeo: $(DIR)/AtomLIB-$$@

disman: $(DIR)/AtomLIB-$$@

diana:	$(DIR)/AtomLIB-$$@

xplor:	$(DIR)/AtomLIB-$$@

biosym: $(DIR)/AtomLIB-$$@

pdb:	$(DIR)/AtomLIB-$$@

pdbn:	$(DIR)/AtomLIB-$$@

akke:   $(DIR)/AtomLIB-$$@

type:   $(DIR)/AtomLIB-$$@

aqua:   $(DIR)/PseudoLIB-$$@


$(DIR)/AtomLIB-disgeo:	mdf2AtomLIB
	mdf2AtomLIB type=disgeo $(RAW) > $@

$(DIR)/AtomLIB-disman:	mdf2AtomLIB
	mdf2AtomLIB type=disman $(RAW) > $@

$(DIR)/AtomLIB-diana:	mdf2AtomLIB
	mdf2AtomLIB type=diana  $(RAW) > $@

$(DIR)/AtomLIB-xplor:	mdf2AtomLIB
	mdf2AtomLIB type=xplor  $(RAW) > $@

$(DIR)/AtomLIB-biosym:	mdf2AtomLIB
	mdf2AtomLIB type=biosym $(RAW) > $@
 
$(DIR)/AtomLIB-pdb:	mdf2AtomLIB
	mdf2AtomLIB type=pdb    $(RAW) > $@

$(DIR)/AtomLIB-pdbn:	mdf2AtomLIB
	mdf2AtomLIB type=pdbn    $(RAW) > $@

$(DIR)/AtomLIB-akke:	mdf2AtomLIB
	mdf2AtomLIB type=akke $(RAW) > $@

$(DIR)/AtomLIB-type:	mdf2AtomLIB
	mdf2AtomLIB type=type $(RAW) > $@

$(DIR)/PseudoLIB-disgeo:    mdf2PseudoLIB
	mdf2PseudoLIB type=disgeo pdb=off $(RAW) > $@
	mdf2PseudoLIB type=disgeo pdb=on  $(RAW) > $@-mr

$(DIR)/PseudoLIB-diana:	    mdf2PseudoLIB
	mdf2PseudoLIB type=diana pdb=off $(RAW) > $@
	mdf2PseudoLIB type=diana pdb=on  $(RAW) > $@-mr

$(DIR)/PseudoLIB-xplor:	    mdf2PseudoLIB
	mdf2PseudoLIB type=xplor pdb=off $(RAW) > $@
	mdf2PseudoLIB type=xplor pdb=on  $(RAW) > $@-mr

$(DIR)/PseudoLIB-biosym:    mdf2PseudoLIB
	mdf2PseudoLIB type=biosym pdb=off $(RAW) > $@
	mdf2PseudoLIB type=biosym pdb=on  $(RAW) > $@-mr

$(DIR)/PseudoLIB-aqua:	    mdf2PseudoLIB
	mdf2PseudoLIB type=aqua pdb=off $(RAW) > $@

